package com.rt.tmpt.service;

import com.rt.tmpt.dto.Result;

import java.util.Map;

public interface IQuartzService {

	/**
	 * 启动工作任务
	 * @param a2Job_id
	 * @return
	 */
	public Result timerStartup(long a2Job_id);


	/**
	 * start timer immediately
	 * @param var1
	 * @return
	 */
	Result timerStartupImmediately(long var1);

	/**
	 * 关闭工作任务
	 * @param a2Job_id
	 * @return
	 */
	public Result timerShutdown(long a2Job_id);
	
	
	/**
	 * 重启工作任务
	 * @param a2Job_id
	 * @return
	 */
	public Result timerRestart(long a2Job_id);
	

	/**
	 * 服务重启时，自动启动所有任务
	 */
	public Result startAllJob();
	
	/**
	 * 定时器调用存储过程
	 * @param procedure
	 * @param paramMap
	 * @return
	 */
	public Result executeProcedureJob(String procedure, Map<String, Object> paramMap);
	
	/**
	 * 测试定时器执行的，beanObject ,beanMethod
	 * @param paramMap
	 * @return
	 */
	public Result testQuartz(Map<String, Object> paramMap);
}
